home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 4_16.lha / 4_16 / 4_16c.c < prev    next >
Text File  |  1993-08-08  |  275b  |  13 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / a function version of the fac()
  6. / macro which determines factorials
  7. nt fac(int a)
  8.  
  9.    return (a > 1) ?
  10.     a * fac(a-1) :
  11.     1;
  12.  
  13.